
#include <gtk/gtk.h>
#include  <pthread.h>
#include "pcap.h"



extern int flag1;
extern int flag2;

extern long packet_total_len;
extern GtkWidget *datas_entry;
extern GtkWidget *packets_num_entry;
extern GtkWidget *current_speed_entry;
extern long packet_num;
extern long current_speed;

gboolean on_QUIT_destroy_event(GtkWidget *widget,
                               GdkEvent *event,
                               gpointer user_data);

void on_chose2_pressed(GtkButton *button);

void on_chose1_pressed(GtkButton *button);

void on_START_pressed(GtkButton *button);

void on_RECIEVED_DATAS_activate(GtkEntry*entry, long packet_total_len);

void on_CURRENT_SPEED_activate(GtkEntry *entry, long speed);

void on_PACKETS_NUM_activate(GtkEntry *entry, long packet_num);

void * caputure(void);

void ARP_callback(void);

void IP_callback(void);

void ICMP_callback(void);
void UDP_callback(void);
void TCP_callback(void);

void on_ARP_SAVE_pressed(GtkButton *button, gpointer user_data);

void on_IP_SAVE_pressed(GtkButton *button, gpointer user_data);
